﻿using UnityEngine;
using System.Collections;

public class PointInDirectionOfVelocity : MonoBehaviour 
{
    public Vector3 ModelUp = Vector3.up;
    public float TurnToFaceSpeed = .1f;

	// Use this for initialization
	void Start () 
    {
	
	}
	
	// Update is called once per frame
	void Update () 
    {
        transform.rotation = HelperClass.LookAt(transform.position + rigidbody.velocity, TurnToFaceSpeed, transform.position, transform.rotation, ModelUp);
	}
}
